<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/4/15
  Time: 17:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改用户页面</title>
  <style>
    .mainDiv{
      border: 1px solid #000;
      width: 450px;
      height: 280px;
      border-radius: 3.5px;
      margin: 100px 0 0 320px;
    }
    .userDiv{
      margin: 40px 0 0 60px;

    }
    #username{
      margin-left: 20px;
    }
    .pwdDiv{
      margin: 20px 0 0 60px;
    }
    #pwd{
      margin-left: 20px;
    }
    .repwdDiv{
      margin: 20px 0 0 60px;
    }
    #repwd{
      margin-left: 12px;
    }
    .emailDiv{
      margin: 20px 0 0 60px;
    }
    #email{
      margin-left: 20px;
    }

    .btnDiv{
      margin: 20px 0 0 170px;
    }

    .uidDiv{
      margin: 20px 0 0  60px;
    }
    .relNameDiv{
      margin: 20px 0 0  60px;
    }
    .sexDiv{
      margin: 20px 0 0  60px;
    }
  </style>
</head>
<body>
<div class="mainDiv">


  <!--action:提交的服务器地址-->
  <form action="${pageContext.request.contextPath}/user?methodName=updateUser" method="post">
    <%--隐藏域 :没有效果,但是可以携带数据--%>
    <input type="hidden" name="uid" value="${user.uid}" /> <%--uid=xxxx值--%>
    <%--<div class="uidDiv">
      <label for="uid">用户ID</label>
      &lt;%&ndash;表单中的所有name属性和实体的属性名称一致&ndash;%&gt;
      <input type="text" name="uid"  style="margin-left: 30px;"   placeholder="请输入用户ID"
             id="uid" />
    </div>--%>

    <div class="userDiv">
      <label for="username">用户昵称</label>
      <input type="text" name="username"   value="${user.username}"  placeholder="请输入用户昵称"
             id="username" />
    </div>
    <div class="relNameDiv">
      <label for="name">真实姓名</label>
      <input type="text" name="name"
             placeholder="请输入真实姓名" style="margin-left: 30px;" value="${user.name}" id="name" />
    </div>
    <div class="emailDiv">
      <label for="email">用户邮箱</label>
      <input type="text" name="email"
             placeholder="请输入邮箱" id="email" value="${user.email}" />
    </div>
    <div class="sexDiv">
      <label for="sex">用户性别</label>
      <input type="text" name="sex"
             placeholder="请输入用户性别" style="margin-left: 30px;" id="sex" value="${user.sex}" />
    </div>
    <div class="btnDiv">
      <!--submit:表单提交:将表单中所有数据提交服务器服务器上-->
      <input type="submit" value="修改">
    </div>

  </form>


</div>
</body>
</html>
